package com.bps.zzant.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.bps.zzant.dao.PaymentDAO;
import com.bps.zzant.model.Payment;
@Transactional

public class PaymentServiceImpl implements PaymentService {
	@Autowired
	PaymentDAO paymentDAO;
	
	public PaymentDAO getPaymentDAO() {
		return paymentDAO;
	}

	public void setPaymentDAO(PaymentDAO paymentDAO) {
		this.paymentDAO = paymentDAO;
	}

	public List<Payment> getPaymentsByOrderId(int orderId) {
		return paymentDAO.getPaymentsByOrderId(orderId);
	}

}
